package com.zbkj.common.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商户基础信息响应对象
 +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MerchantBaseInfoResponse对象", description = "商户基础信息响应对象")
public class MerchantBrokerageConfigInfoResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "排名分佣比例内容(格式：1:50,2:30,3:20)")
    private String rankingScale;

    @ApiModelProperty(value = "利润比（%）")
    private BigDecimal scale;

    @ApiModelProperty(value = "奖励份额（取多少个名次）")
    private Integer prizeNum;

    @ApiModelProperty(value = "统计周期(0:天，1：周，2：月，99：选择时间)")
    private Integer cycle;

    @ApiModelProperty(value = "周期开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "周期结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "状态（0：关闭，1：开启）")
    private Integer status;

    @ApiModelProperty(value = "自动续期(0:否，1：是)")
    private Boolean autoRenew;

    @ApiModelProperty(value = "分红发放时间")
    private Date settlementTime;

    @ApiModelProperty(value = "是否已发放")
    private Boolean isSettlement;

}
